package com.sec.typhoondatapush.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * spring容器启动后，bean初始化时会调用，初始化数据（产生一个默认的定时任务的配置）
 *
 * @author zhuwq
 * @date 2018-08-03
 */
@Component
public class InitApp {

    @Autowired
    private InitService initService;

    @PostConstruct
    public void init() {
        initService.init();
    }
}
